<html>
<head>
	<title>Write the log</title>
	<link rel='stylesheet' type='text/css' media='screen' href='/static/css/default.css'>
</head>

<body>
	<div class='Top'>
		<div class='TopMain'>	
			<h3>Welcome to my blog</h3>
				<div class='Margins'>
				{% if error %}
					<p class='niche'>Did not find a relevant article or you enter a null character.</p>
				{% endif %}
					<form action = '/query/' method = 'get'>
					<input type='text' name='query'>
					<input type="submit" value='Query'>
					</form>
				</div>
		</div>
	</div>
<!--top end-->

<div id='subject'>	
	<div id='datail'>
			<form action = '/log/' method='POST' id='commentform'>
				<p>
					<input type="text" name="title" value='请输入文章标题'>
					<select name='class'>
					{% for i in classification %}
					<option value = '{{ i.id }}'>{{ i.type }}</option>
					{% endfor %}
					</select>
					<input type='text' name='label' value='请输入关键字'>
				</p>
				<p><textarea rows=6 name='content'></textarea></p>
				<p><button type="submit">提交</button></p>
			</fieldset>
			</form>
			<p><a href = '/'><button>返回</button></a></p>
	</div>
</div>
</body>
</html>